// ClassWithSlowMethod.java
//
// Informatics 102 Spring 2012
// Code Example
//
// This is a class that has nothing interesting about it, except that
// it contains a method that will take a while to execute.

public class ClassWithSlowMethod
{
	// This method takes a String argument and returns that String
	// concatenated to itself with a colon in between.  So, for
	// example, if it takes "Alex" as input, it returns "Alex:Alex"
	// as a result.  It also artificially takes a while by "sleeping"
	// for five seconds.
	public static String slowMethod(String arg)
	{
		try
		{
			Thread.sleep(5000);
		}
		catch (InterruptedException e)
		{
		}

		return arg + ":" + arg;
	}
}
